Skip to main content
Version: 1.0.2

Approve Beneficiary Ticket

The Approve Beneficiary Ticket API is used to approve or decline deletion beneficiary tickets. If the user approves the delete beneficiary ticket, it changes the status of the beneficiary to "DELETED". Legal representatives with the "CanApproveBeneficiary" permission can approve delete beneficiary tickets.

Method: POST

{{URL}}/jsonrpc

Headers

NameValue
Content-Typeapplication/json

Example

Payload Parameters
ParameterDescription

RequestID

Mandatory

String

ID of the edit beneficiary request

Ex:"350005 "

reason

Mandatory

String

Reason for approving or declining

Ex:"test "

status

Mandatory

String

Status of the approval

Ex:"APPROVED "

customerID

Mandatory

String

ID of the customer associated with the beneficiary

Ex:"100000000048001 "

TicketName

Mandatory

String

Name of the ticket

Ex:"DELETE_BENEFICIARY "


curl --location 'https://wallet.netxd.com/plwallet/rpc/WalletService/ApproveBeneficiaryTicket' \
--header 'DeviceID: 8020' \
--header 'Signature: keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic ci5hbmJhbGFnYW5AbmV0eGQuY29tOmQ0Mjc2ZmIx' \
--data '{"RequestID":"350005","reason":"test","status":"APPROVED","customerID":"100000000048001","TicketName":"DELETE_BENEFICIARY"}'

Body


{
"RequestID": "350005",
"reason": "test",
"status": "APPROVED",
"customerID": "100000000048001",
"TicketName": "DELETE_BENEFICIARY"
}

Response: 200

Response Parameters
ParameterDescription

ID

String

Unique identifier of the beneficiary

Ex:"64d50c5c9735d3e922367ad4 "

createdDate

String

Timestamp indicating when the beneficiary entity was created

Ex:"2023-08-10T16:12:12.198Z "

updatedDate

String

Timestamp indicating the most recent update to the beneficiary entity Ex:"0001-01-01T00:00:00Z "

type

String

Type of beneficiary

Ex:"BUSINESS", "INDIVIDUAL "

firstName

String

First name of the beneficiary

Ex:"Reddygari "

lastName

String

Last name of the beneficiary

Ex:"ChennReddy "

accountType

String

Account type

Ex:"DIGITALASSET "

contact

Object

email

String

Email address of the beneficiary

Ex:"chennareddy.s+099@netxd.com "

phoneNumber

String

Phone number of the beneficiary

Ex:"1212144555 "

address

Object

line1

String

Address line 1

Ex:"alaska "

city

String

City of the beneficiary's address

Ex:"Seattle "

state

String

State of the beneficiary's address

Ex:"WA "

country

String

Country of the beneficiary's address

Ex:"US "

zipCode

String

Zip code of the beneficiary's address

Ex:"98104 "

createdBy

String

Email address of the user who created the beneficiary

Ex:"chennareddy.s+102@netxd.com "

accountId

String

Unique account identifier of the beneficiary

Ex:"2345001 "

status

String

Status of the beneficiary

Ex:"INACTIVE "

customerID

String

Unique identifier of the customer associated with the beneficiary

Ex:"100000000048001 "

publicKey

String

Public key associated with the beneficiary

Ex:"GDIP6LFGGED5INT6ZIG3CPYLMXE7KZPYXF7P6IVLM6JEDOGI4ORZVVFH "

network

String

Network associated with the beneficiary

Ex:"11 "

beneficiaryAccountDetails

Object

accountId

String

Account ID of the beneficiary

Ex:"2345001 "

accountName

String

Unique

Ex:"Sadowtest12 "

customerID

String

Unique identifier of the customer associated with the beneficiary

Ex:"100000000048001 "

customerName

String

Name of the customer associated with the beneficiary

Ex:"NETXDNETXD "

updateHistory

Array

userName

String

User who performed the update

Ex:"chennareddy.s+106@netxd.com "

updatedDate

String

Timestamp of the update

Ex:"2023-08-10T16:12:53.367Z "


{
"ID": "64d50c5c9735d3e922367ad4",
"createdDate": "2023-08-10T16:12:12.198Z",
"updatedDate": "0001-01-01T00:00:00Z",
"type": "INDIVIDUAL",
"firstName": "Reddygari",
"lastName": "ChennReddy",
"accountType": "DIGITALASSET",
"contact": {
"email": "chennareddy.s+099@netxd.com",
"phoneNumber": "1212144555"
},
"address": {
"line1": "edit test",
"city": "Seattle",
"state": "WA",
"country": "US",
"zipCode": "98104"
},
"createdBy": "chennareddy.s+102@netxd.com",
"accountId": "2345001",
"status": "DELETED",
"customerID": "100000000048001",
"publicKey": "GDIP6LFGGED5INT6ZIG3CPYLMXE7KZPYXF7P6IVLM6JEDOGI4ORZVVFH",
"network": "11",
"beneficiaryAccountDetails": {
"accountId": "2345001",
"accountName": "Sadowtest12",
"customerID": "100000000048001",
"customerName": "NETXDNETXD"
},
"updateHistory": [
{
"userName": "chennareddy.s+106@netxd.com",
"updatedDate": "2023-08-10T16:12:53.367Z"
},
{
"userName": "chennareddy.s+102@netxd.com",
"updatedDate": "2023-08-10T16:13:34.653Z"
},
{
"userName": "chennareddy.s+106@netxd.com",
"updatedDate": "2023-08-10T16:14:33.359Z"
}
]
}